/**
 * Created by Mark_ren on 2016/11/28.
 * 苟富贵,無相忘
 */
var moment = require("moment");
var co = require('co');
var seqModule = require('../../../routes/createModules');
var seq = new seqModule();
var util = require('../../../common/util');


var qdWjLogController = {
    addWjLog: function (req, res) {
        co(function () {
            req.query.id = util.getUUID();
            req.query.createTime = util.getNowTime();
            seq.qdWjLogModule.create(req.query).then(function (result) {
                res.json({ 'success': true, 'msg': '添加成功', 'result': result });
            })
        }).catch(function (e) {
            res.json({ 'success': false, 'msg': '添加失败' });
            console.log(e);
        })

    }


}
module.exports = qdWjLogController;